<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.model.*" %>  
<%@ page import="com.control.*" %>  
<%@ page import="java.util.ArrayList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>insertInformation.jsp</title>
		<script language="javascript"> 
		var searchDefault="如：1990-01-01";   
	    var focusFlag = false;   
	    function inputFocus(e){   
	        if(e.value== searchDefault) {   
	            e.value='';   
	        }   
	        focusFlag = true;   
	        e.style.color="black";   
	    }   
	function inputBlur(e){   
	        if(e.value=='') {   
	            e.value=searchDefault;   
	    e.style.color="#767676";   
	        }   
	    }   
		function check1()
		{
			    if(document.form2.name.value=="")
				{
					alert("课程名称不能为空");
					document.form2.name.focus();
					return;
				}
				else if(document.form2.teacher_id.value=="")
				{
					alert("教师编号不能为空");
					document.form2.teacher_id.focus();
					return;
				}
				else
				{form2.submit();}
		}
</script>
	</head>
	<body>
		<fieldset class="filedset">
			<legend> 
				添加课程信息 
			</legend>
			<form action="course_insert_deal.jsp" name="form2" method="post"
				style="margin-top: 20px; margin-left: 400px;">  
				<span style="color: rgb(55, 107, 165); margin-top: 10px;">课程名称：</span>  
				<input type="text" name="name" id="name" style="margin-top: 10px;">*  
				<br>  
				<span style="color: rgb(55, 107, 165); margin-top: 10px;">教师编号：</span>  
				<input type="text" name="teacher_id" id="teacher_id" style="margin-top: 10px;">*  
				<br>  
				<span style="color: rgb(55, 107, 165); margin-top: 10px;"></span><br>  
				<input type="submit" value="确定" onclick="check1()" style="border: 0px none ; background: transparent url(../../images/button.gif) no-repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; margin-left: 40px; height: 28px; width: 62px; margin-top: 20px;">  
				<input type="reset" name="input" value="重置" style="border: 0px none ; background: transparent url(../../images/button.gif) no-repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; margin-left: 20px; height: 28px; width: 62px; margin-top: 20px;">  
			</form>
		</fieldset>
	</body>
</html>